header {
    background: linear-gradient(90deg, #630788FF, #630788FF) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.356);
}

.logo-image {
    position: absolute;
    width: 50px;
    height: 34px;
    left: 10px;
}

nav {
    max-width: 100%;
    margin-left: 50px;
    margin-right: 50px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav div a {
    margin-right: 10px;
    text-decoration: none;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

nav a[href="/"] {
    color: #ffffff;

    font-weight: bold;
    font-size: 24px;
}

nav .relative {
    position: relative;
}

nav .relative img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border-width: 2px;
    border-color: transparent;
    transition: border-color 0.2s;
}

nav .relative img:hover {
    border-color: #630788FF;
}

.user-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #630788FF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    width: 150px;
    z-index: 9999;
}

.user-menu a {
    display: block;
    color: #ffffff;
    padding: 0.5rem;
    text-decoration: none;
}

.user-menu a:hover {
    background-color: #ffffff;
    color: #630788FF;
    border-radius: 5px;
}

.user-menu a:last-child {
    border-bottom: none;
}

#user-avatar {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-right: 10px;
}

/* Menú en pantallas pequeñas */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* El menú por defecto está visible en pantallas grandes */
.menu {
    display: flex;
    gap: 10px;
}

/* Menú en pantallas pequeñas */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #630788FF;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    .menu a {
        color: white;
        margin: 10px 0;
        text-align: center;
    }

    .menu a:hover {
        background-color: #ffffff;
        color: #630788FF;
        border-radius: 5px;
    }

    .menu-toggle {
        display: block;
    }

    .menu.visible {
        display: flex;
    }
}

/* Para pantallas grandes */
@media (min-width: 768px) {
    #menu {
        display: flex;
        position: static;
        flex-direction: row;
    }

    #user-menu {
        display: none; /* Se mantiene oculto en pantallas grandes */
    }
}
